package edu.yctc.weblog.service;

import edu.yctc.weblog.entity.CommentDO;
import edu.yctc.weblog.entity.PageDO;
import edu.yctc.weblog.entity.ResultDO;
import edu.yctc.weblog.utils.PageQueryUtil;

public interface CommentService {

    public ResultDO<Void> addComment(CommentDO commentDO);

    public ResultDO<PageDO> getCommentsPage(PageQueryUtil pageQueryUtil);

    public ResultDO<Integer> getTotalComments();

    /**
     * 批量审核
     * 
     * @param ids
     * @return
     */
    public ResultDO<Void> checkDone(Long[] ids);

    public ResultDO<Void> deleteBatch(Long[] ids);

    /**
     * 回复
     * 
     * @param commentId
     * @param replyBody
     * @return
     */
    public ResultDO<Void> reply(Long commentId, String replyBody);

    /**
     * 根据文章id和分页参数获取文章的评论列表
     * 
     * @param blogId
     * @param page
     * @return
     */
    public ResultDO<PageDO> getCommentPageByBlogIdAndPageNum(Long blogId, int page);

}
